package Chapter01.Homework.Work02;

public class Employee {
    //员工
    private String name;
    private int age;
    private String gender;
    private String position;//职务
    private double salary;//薪水
    private String id;

    public Employee() {
    }

    public Employee(String name, int age, String gender, String position, double salary, String id) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.position = position;
        this.salary = salary;
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "显示" +
                "姓名='" + name + '\'' +
                ", 年龄=" + age +
                ", 性别='" + gender + '\'' +
                ", 职务='" + position + '\'' +
                ", 薪水=" + salary +
                ", 工号='" + id + '\'' +
                '}';
    }
}
